package com.xwj.util.RedisUtils.annotations;

import java.lang.annotation.*;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface RedisAddOrUpdate {

    /**
     * key
     * @return
     */
    String key() default "";

    /**
     * 存储类型
     * @return
     */
    String type() default "string";

    /**
     * 超时，默认60s
     * @return
     */
    long expireTime() default 60;
}
